package lyc.springcloud.admin.dto.systemManagerDto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lyc.springcloud.admin.utils.PageUtil;

import java.io.Serializable;
import java.util.Date;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class UserManagerDto extends PageUtil implements Serializable {
    private static final long serialVersionUID = 1L;
    private String userId;
    private String roleId; // 用于前端单个角色查询
    private String roleIds;// 用于前端多个角色插入（用户对角色，一对多）
    private String username;
    private String password;
    private String phoneNum;
    private String email;
    private String address;
    private String userLogo;
    private String userLevel;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT + 8")
    private Date loginTime;
    private String loginAddress;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT + 8")
    private Date lastLoginTime;
    private String lastLoginAddress;

    private Integer status;
    private Integer isExpire;
    private Integer isLock;
    private Integer isDelete;

    private String createBy;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT + 8")
    private Date createDate;
    private String updateBy;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT + 8")
    private Date updateDate;
}
